package com.itheima.a01polymorphismdemo01;

/***
 *@title Test
 *@description <TODO description class purpose>
 *@author 12468
 *@version 1.0.0
 *@create 2024/10/23 0:33
 **/
public class Test {
    public static void main(String[] args) {
        Administrator administrator = new Administrator("zhangsan", 18);
        register(administrator);

        Teacher teacher = new Teacher("lisi", 19);
        register(teacher);

        Student student = new Student("wangwu", 20);
        register(student);


    }

    public static void register(Person person) {
        person.show();
    }
}
